using System;
using System.ComponentModel.DataAnnotations;

namespace CR.Application.DTOs
{
    /// <summary>
    /// 养殖企业信息DTO
    /// </summary>
    public class BreedingEnterpriseInfoDTO
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 企业名称
        /// </summary>
        [Required(ErrorMessage = "企业名称不能为空")]
        [StringLength(100, ErrorMessage = "企业名称长度不能超过100个字符")]
        public string EnterpriseName { get; set; }

        /// <summary>
        /// 企业代码
        /// </summary>
        [Required(ErrorMessage = "企业代码不能为空")]
        [StringLength(50, ErrorMessage = "企业代码长度不能超过50个字符")]
        public string EnterpriseCode { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [StringLength(50, ErrorMessage = "联系人长度不能超过50个字符")]
        public string ContactPerson { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [StringLength(20, ErrorMessage = "联系电话长度不能超过20个字符")]
        public string ContactPhone { get; set; }

        /// <summary>
        /// 企业地址
        /// </summary>
        [StringLength(200, ErrorMessage = "企业地址长度不能超过200个字符")]
        public string Address { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedAt { get; set; }
    }
} 